from zope.interface import Interface
# -*- Additional Imports Here -*-
from zope import schema

from my315ok.grouporder import grouporderMessageFactory as _


class Iordergoods(Interface):
    """a goods content type for group order"""

    # -*- schema definition goes here -*-
    currentmembers = schema.Int(
        title=_(u"current members number"),
        required=False,
        description=_(u"Field description"),
    )
#
    reachedmintime = schema.Date(
        title=_(u"reached minimum members number time"),
        required=False,
        description=_(u"Field description"),
    )
#
    endedtime = schema.Date(
        title=_(u"ended time"),
        required=True,
        description=_(u"Field description"),
    )
#
    startedtime = schema.Date(
        title=_(u"started time"),
        required=True,
        description=_(u"Field description"),
    )
#
    minnums = schema.Int(
        title=_(u"minimum members number"),
        required=True,
        description=_(u"minimum members number for grouporder"),
    )
#
    tips = schema.Text(
        title=_(u"tips"),
        required=False,
        description=_(u"Field description"),
    )
#
    features = schema.Text(
        title=_(u"features for goods"),
        required=False,
        description=_(u"Field description"),
    )
#
    price = schema.Float(
        title=_(u"price"),
        required=True,
        description=_(u"Field description"),
    )
#
    discount = schema.Float(
        title=_(u"discount"),
        required=True,
        description=_(u"Field description"),
    )
#
    originalprice = schema.Float(
        title=_(u"original price"),
        required=False,
        description=_(u"Field description"),
    )
#
    photo = schema.Bytes(
        title=_(u"big photo"),
        required=True,
        description=_(u"Field description"),
    )
#
    text = schema.SourceText(
        title=_(u"more details"),
        required=True,
        description=_(u"Field description"),
    )
#
